/**
 * 
 */
package com.efast.dmom.aps.controller;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import com.efast.dmom.aps.bean.PlanOrder;
import com.efast.dmom.aps.bean.ResultBean;
import com.efast.dmom.aps.service.PlanOrderScheduleService;

/**
 * @author Aaron Liu
 *
 *         2020年2月15日
 */

@Controller
@RequestMapping(value = "/orderSchedule")
public class PlanOrderScheduleController {

	@Autowired
	PlanOrderScheduleService scheduleService = null;

	@RequestMapping(value = "/autoSchedule")
	public @ResponseBody ResultBean autoSchedule(@RequestBody List<PlanOrder> orderList) {

		return scheduleService.autoSchedule(orderList);
	}
	
	
	@RequestMapping(value = "/manualSchedule")
	public @ResponseBody ResultBean manualSchedule(@RequestBody PlanOrder planOrder) {

		return scheduleService.manualSchedule(planOrder);
	}
	
}
